package com.example.sellersale.server.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.sellersale.entity.Goods;
import com.example.sellersale.entity.GoodsType;
import com.example.sellersale.mapper.GoodsMapper;
import com.example.sellersale.mapper.GoodsTypeMapper;
import com.example.sellersale.server.GoodsService;
import com.example.sellersale.server.GoodsTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class GoodsTypeServiceImpl extends ServiceImpl<GoodsTypeMapper, GoodsType> implements GoodsTypeService {
    @Autowired
    private GoodsTypeMapper goodsTypeMapper;
    @Override
    public List<GoodsType> goodsTypes() {
       return goodsTypeMapper.selectList(null);
    }
}
